{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<!--{load href="__PLUGINS__layui/layui.js"}
{load href="__PLUGINS__layui/css/layui.css"}-->
<style type="text/css">
    #des,#des input{ width: 40px;text-align:center;}
    #id{ width: 78px; }
    .bs-checkbox{ width: 36px; height: 40px }
    .fixed-table-toolbar .columns,.fixed-table-toolbar .search{margin-left:0px; margin-top: 0px }
    #title span{ float: right; }
    .asdlkjasd{ background: #1ab394; color: #fff}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar" style="text-align: center;margin-bottom: 20px">
                        <h2>支付金额: <font color="#1ab394">{$sum}</font> 元</h2>
                    </div>
                    <div class="fixed-table-toolbar">
                        <a class="btn btn-default btn-outline {present name="type"}{else /}asdlkjasd{/present}" href="{:url('rengongvip')}">所有内容</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='1'}asdlkjasd{/eq}" href="{:url('rengongvip',['type'=>1])}">未支付</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='2'}asdlkjasd{/eq}" href="{:url('rengongvip',['type'=>2])}">已支付</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='3'}asdlkjasd{/eq}" href="{:url('rengongvip',['type'=>3])}">微信</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='4'}asdlkjasd{/eq}" href="{:url('rengongvip',['type'=>4])}">支付宝</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='5'}asdlkjasd{/eq}" href="{:url('rengongvip',['type'=>5])}">余额</a>
                    </div>
                    <div style="display:block;clear: both;"></div>
                    <div class="fixed-table-toolbar">
                        <form  method="get" action="" style="display: flex;">
                            <div class="pull-left search" style="display: flex;">
                                <div class="columns columns-right btn-group pull-left">
                                    <select class="form-control" name="search">
                                        <option value="id" {php}if(input('?param.type')){if(input('param.type')=='id'){echo "selected";} }{/php}>会员ID</option>
                                        <option value="name" {php}if(input('?param.type')){if(input('param.type')=='name'){echo "selected";} }{/php}>昵称</option>
                                    </select>
                                </div>

                                <div class="pull-right search">
                                    <input class="form-control input-outline" type="text"
                                           {php}
                                           if(input('?param.name')){
                                    if(input('param.name')){
                                    echo "value='".input('name')."'";
                                    }

                                    }
                                    {/php}
                                    name="name" placeholder="搜索">
                                </div>

                                <div class="pull-right search">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7; border-left:0px" class="btn btn-default btn-outline" type="submit">搜索</button>
                                </div>

                                <input name="date" type="text" id="date" class="form-control layui-input" value="{present name="date"}{$date}{/present}" placeholder="请选择时间" autocomplete="off" style="height:34px;width:100px;margin:0 10px;">

                                {php}
                                if(input('?param.name')){
                                {/php}
                                <div class="pull-right search">
                                    <a class="btn btn-w-m btn-link" href="{:url('rengongvip')}">返回管理</a>
                                </div>{php}
                                }
                                {/php}
                            </div>
                        </form>
                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">ID</th>
                                    <th data-align="center">订单号</th>
                                    <th data-align="center">用户ID</th>
                                    <th data-align="center">昵称</th>
                                    <th data-align="center">金额</th>
                                    <th data-align="center">方式</th>
                                    <th data-align="center">状态</th>
                                    <th data-align="center">详情</th>
                                    <th data-align="center">时间</th>
                                    <th data-align="center">备注</th>
                                    <!--<th>管理</th>-->
                                </tr>
                                </thead>
                                <tbody id="form">
                                {php}$hide=array('0'=>'<font color="#f00">禁止</font>','1'=>'<font color="#1ab394">正常</font>','2'=>'审核','3'=>'<font color="#f00">拒绝</font>');{/php}
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>{$v.id}</td>
                                    <td>{$v.vip_order}</td>
                                    <td>{$v.user_id}</td>
                                    <td>{$v.name}</td>
                                    <td>{$v.price}</td>
                                    <td>{if condition="$v.pay == 1"}<span class="btn btn-primary btn-xs">微&nbsp;&nbsp;&nbsp;信</span>{elseif condition="$v.pay == 2"}<span class="btn btn-primary btn-xs">支付宝</span>{elseif condition="$v.pay == 3"}<span class="btn btn-primary btn-xs">余&nbsp;&nbsp;&nbsp;额</span>{/if}</td>
                                    <td>{if condition="$v.type"}<span class="btn btn-primary btn-xs">已支付</span>{else /}<span class="btn btn-default btn-xs">未支付</span>{/if}</td>
                                    <td>{$v.name}  /  {$v.price}</td>
                                    <td>{:date('Y-m-d H:i',strtotime($v.time))}</td>
                                    <td>{$v.desc}</td>
                                    <!--<td>
                                        <div class="btn-group">
                                            <div data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                            </div>
                                            <ul class="dropdown-menu">
                                                <li><a onClick="del({$v.id})">删除</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>-->
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}






<script type="text/javascript">

    layui.use(['laydate'], function(){
        var laydate = layui.laydate;
        var form = layui.form;

        //执行一个laydate实例
        laydate.render({
            elem: '#date' //指定元素
            ,type: 'date'
            ,trigger: 'click'
        });
    })

    function del(id){
        swal_del(id,"{:url('orderdel')}")
    }

</script>
 